public class MarketSubcategoryButton : MarketButton
{
	public override void OnClick()
	{
		base.OnClick();
		MarketControllerUI.instance.subcategoriesPanel.Select(id);
	}

	public override void Init(string id, MarketPanel parentPanel)
	{
		base.Init(id, parentPanel);
		SetIcon();
		if (MarketControllerUI.instance.selectedCategory.Equals("Weapons") || MarketControllerUI.instance.selectedCategory.Equals("Armor"))
		{
			LoadProductTexture(MarketController.Instance.GetEquipedProduct(MarketControllerUI.instance.selectedCategory, id));
		}
	}

	public override void SetIcon()
	{
		icon.gameObject.SetActive(true);
		icon.spriteName = MarketControllerUI.instance.selectedCategory + "_" + id;
	}
}
